package com.ruoyi.common.entity.DO.order;

import com.ruoyi.common.entity.DO.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "shop_order")
public class ShopOrderDO extends BaseDO {
    @Id
    private Long id;
    private Long shopId;
    private String orderSn;
    private String paySn;
    private String orderBackSn;
    private Long memberId;
    private String receiver;
    private String receiverPhone;
    private String receiveAddress;
    //收货地区
    private String receiveDistricts;
    //关联开票信息
    private String invoiceSnapshot;
    //优惠券ID
    private Long couponId;
    //优惠券总抵扣
    private BigDecimal couponDiscount;
    //优惠券信息
    private String couponSnapshot;
    //关联活动ID
    private Long activityId;
    //活动总抵扣
    private BigDecimal activityDiscount;
    //开票费用
    private BigDecimal invoiceCost;
    //批发费用
    private BigDecimal buyCost;
    //商品费用
    private BigDecimal productCost;
    //订单费用
    private BigDecimal orderCost;
    //实付总费用
    private BigDecimal payCost;
    //提成奖励占比
    private String rewardRate;
    //提成计算基数金额
    private BigDecimal rewardBaseAmount;
    //提成奖励金额
    private BigDecimal rewardAmount;
    //商品总重量
    private Double productWeight;
    //配送方式
    private String logisticsWay;
    //运费
    private BigDecimal deliveryCost;
    //促销
    private BigDecimal promotionCost;
    //下单终端
    private Integer terminal;
    //买家订单备注
    private String orderRemark;
    //平台订单备注
    private String extraRemark;
    //平台订单备注
    private String shopRemark;
}
